﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace FantasyDraft.Models
{
    public class PlayerGame
    {
        [Key] 
        public int PlayerId { get; set; }

        public int Goals { get; set; }
        public int Assists { get; set; }
        public int GameId { get; set; }
        public int TeamId { get; set; }

        //PlayerGame has a 1 to 1 relationship with Player [PlayerId is a foreign key that references Player's PlayerId] so a reference to Player must be made
        //in order to communicate. 
        public virtual Player Player { get; set; }

        /* DO WE NEED THIS? */
        //PlayerGame has a 1 to 1 relationship with Game [GameId is a foreign key that references Game's GameId] so a reference to Game must be made
        //in order to communicate.  
        public virtual Game Game { get; set; }

        /* DO WE NEED THIS? */
        //PlayerGame has a 1 to 1 relationship with User [TeamId is a foreign key that references User's TeamId] so a reference to User must be made
        //in order to communicate.  
        public virtual User User { get; set; }
    }
}